/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.lostreseditores.logica;

import javax.ejb.Stateless;
import org.primefaces.context.RequestContext;

/**
 *
 * @author DILOVE
 */
@Stateless
public class LogicaReportes implements LogicaReportesLocal {

    @Override
    public void generarReporteEstudiantes(String url) throws Exception {
        
        String params =
                "'"
                + url + "/ReporteEstudiantes.do"
                + "', "
                + "'reportWindow', "
                + "'"
                + "width=1024"
                + ",height=768"
                + ",status=no"
                + ",toolbar=no"
                + ",menubar=no"
                + ",location=no"
                + ",scrollbars=yes"
                + "'";
        
        RequestContext.getCurrentInstance().execute("location.href=" + params + ";");
    }

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
}
